package com.woniuxy.controller;

import com.woniuxy.pojo.RbacManager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@Controller
@RequestMapping("rbacManager")
public class RbacManagerControl {
    @GetMapping("/User")
    public String findAll() {
        return "findAll";
    }
    @PostMapping("/User")
    public String addOne(@RequestBody RbacManager rbacManager){
        return "post请求："+rbacManager.toString();
    }
    @PutMapping("/User")
    public String updateOne(@RequestBody RbacManager rbacManager){
        return "put请求："+rbacManager.toString();
    }
    @DeleteMapping("/User/{id}")
    public String deleteOne(@PathVariable int id){
        return "删除了这个"+id+"的用户";
    }
}
